﻿using DynamicProxy.AOP;
using System;
using System.Collections.Generic;
using System.Text;

namespace DynamicProxy.Test
{
    public class BeforeAnswerAttribute : AOPBeforeAttribute
    {
        public override bool BeforeExecute()
        {
            Console.WriteLine("{0} 2.回答问题前...", this.invocation.DelegateMethod.Method.Name);
            return true;
        }
    }


    public class CheckQuestionAttribute : AOPBeforeAttribute
    {
        public override bool BeforeExecute()
        {
            Console.WriteLine("{0} 1.检查问题...", this.invocation.DelegateMethod.Method.Name);
            return true;
        }
    }
}
